package com.magenta.maxoptra.commons.db;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Created by IntelliJ IDEA.
 * User: andreytr
 * Date: 18.02.11
 * Time: 17:18
 */
public interface ResultSetCommand {
    public void execute(ResultSet resultSet) throws SQLException;

    /**
     * @return 0 if no limits
     */
    public int getMaxResults();
    
    /**
     * Fetch size, if zero or below zero, use default fetch size.
     */
    public int getFetchSize();
}
